home *** CD-ROM | disk | FTP | other *** search
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
- Date: Tue, 7 Dec 93 10:30:49 +0100
- Message-Id: <9312070930.AA02205@issan.informatik.uni-dortmund.de>
- To: mint@atari.archive.umich.edu
- In-Reply-To: <199312051613.AA04610@techfac.TechFak.Uni-Bielefeld.DE> (message from Torsten Scherer on Sun, 5 Dec 93 15:44:36 +0100)
- Subject: Re: (another) problem with mntlib41 tfork() function
-
- This patch for MiNTlib PL41 fixes the memory leak. It just moves the
- calls to Mfree to the right place.
-
- --- orig/thread.c Fri Sep 17 18:10:46 1993
- +++ thread.c Tue Dec 7 01:10:58 1993
- @@ -95,8 +95,6 @@
-
- now = _clock();
- pid = Pexec(4, 0L, b, 0L);
- - (void)Mfree(b->p_env); /* free the memory */
- - (void)Mfree(b);
-
- _base = savbase;
- /* restore signal stuff */
- @@ -115,5 +113,7 @@
- _childtime += __waittime;
- }
- }
- + (void)Mfree(b->p_env); /* free the memory */
- + (void)Mfree(b);
- return pid;
- }
-